package AccionBoton;

import java.awt.Component;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;

public class AccionFocoVentana extends WindowAdapter{

	private Component _componente;
	
	public AccionFocoVentana(Component componente){
		
		_componente = componente;
		
	}
	
    public void windowGainedFocus(WindowEvent e) {
		   _componente.requestFocusInWindow();
	    }
}
